﻿<%@ Page Title="" Language="C#" Theme="Default_Themes" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="KinhTeGiaDinh.aspx.cs" Inherits="DanhMuc_KinhTeGiaDinh" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="row-fluid">
        <div class="span12">
            <div class="box">
                <div class="box-title">
                    <h3><i class="icon-file"></i>Kinh tế gia đình</h3>
                    <div class="box-tool">
                        <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                        <a data-action="close" href="#"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content" style="color:#3a87ad;border:solid 1px;">
                    <asp:UpdatePanel ID="udt1" runat="server">
                        <ContentTemplate>
                            <div style="width:50%;margin:0 auto;">
                                <fieldset>
                                    <legend>Nguồn thu nhập chính của gia đình</legend>
                                    Lương/Năm &nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:TextBox ID="txtLuongNam" runat="server" CssClass="spancalenda"></asp:TextBox>
                                    Nguồn khác&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:TextBox ID="txtNguonKhac" runat="server" CssClass="spancalenda"></asp:TextBox>
                                </fieldset>
                                <div style="height:15px"  ></div>
                                <fieldset>
                                    <legend>Quá trình lương bản thân</legend>
                                    <asp:GridView ID="grid" runat="server" AutoGenerateColumns="false" DataKeyNames="ID">
                                        <Columns>
                                            <asp:TemplateField HeaderText="Chọn">
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chkchon" Enabled="true" Checked="false" runat="server" />
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tháng/Năm" SortExpression="ThangNam">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt1" CssClass="textboxformat" runat="server" Text='<%# Bind("ThangNam") %>'></asp:TextBox>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" />
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Ngành/Bậc" SortExpression="NganhBac">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt2" CssClass="textboxformat" runat="server" Text='<%# Bind("NganhBac") %>'></asp:TextBox>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" />
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Hệ số" SortExpression="HeSo">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt3" CssClass="textboxformat" runat="server" Text='<%# Bind("HeSo") %>'></asp:TextBox>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" />
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                    <div style="height:10px"></div>
                                    <asp:Button ID="btnadd" runat="server" Text="Thêm mới" CssClass="iconadd btnformat btnformatwidth1" OnClick="btnadd_Click" />
                                    <asp:Button ID="btndelete" runat="server" Text="Xóa" CssClass="icondelete btnformat btnformatwidth1" OnClick="btndelete_Click" />
                                </fieldset>
                                <div style="height:15px;clear:both;"></div>
                                <fieldset>                                    
                                    <legend>Nhà, đất </legend>
                                    <div style="width:49%;float:left;">
                                        <label class='checkbox'>
                                            <asp:CheckBox ID="chkNhaThue" runat="server" AutoPostBack="true" Text="Nhà ở thuê, được cấp" OnCheckedChanged="chkNhaThue_CheckedChanged"/> 
                                        </label>
                                        Loại nhà&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="drlloainhathue" runat="server" CssClass="spancalenda" Height="15px">
                                            <asp:ListItem Value="-1" Text="---Chọn---"></asp:ListItem>
                                            <asp:ListItem Value="1" Text="Nhà thuê"></asp:ListItem>
                                            <asp:ListItem Value="2" Text="Nhà được cấp"></asp:ListItem>
                                        </asp:DropDownList>
                                        <div style="height:5px;"></div>
                                        Tổng diện tích&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="tongdientichnhathue" runat="server" CssClass="textboxformatfixel"></asp:TextBox>&nbsp;m x m
                                    </div>
                                    <div style="width:49%;float:right;">
                                        <label class='checkbox'>
                                            <asp:CheckBox ID="chknhamua" runat="server" AutoPostBack="true" Text="Nhà tự mua, tự xây" OnCheckedChanged="chknhamua_CheckedChanged"/> 
                                        </label>
                                        Loại nhà&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="drlNhamua" runat="server" CssClass="spancalenda" Height="15px">
                                            <asp:ListItem Value="-1" Text="---Chọn---"></asp:ListItem>
                                            <asp:ListItem Value="1" Text="Nhà tự xây"></asp:ListItem>
                                            <asp:ListItem Value="2" Text="Nhà nhà mua"></asp:ListItem>
                                        </asp:DropDownList>
                                        <div style="height:5px;"></div>
                                        Tổng diện tích&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="txtTongDientichnhamua" runat="server" CssClass="textboxformatfixel"></asp:TextBox>&nbsp;m x m
                                    </div>
                                </fieldset>   
                                <div style="height:15px;clear:both;"></div>
                                <fieldset style="text-align:right;">
                                    <legend style="text-align:left;">Đất ở, đất kinh doanh</legend>
                                    <div style="width:60%">
                                        Đất được cấp&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="txtDatduoccap" runat="server" CssClass="spancalenda"></asp:TextBox>&nbsp;m x m
                                        <div style="height:5px;"></div>
                                        Đất tự mua&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="txtDatTuMua" runat="server" CssClass="spancalenda"></asp:TextBox>&nbsp;m x m
                                        <div style="height:5px;"></div>
                                        Đất sản xuất&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="txtDatsanxuat" runat="server" CssClass="spancalenda"></asp:TextBox>&nbsp;m x m
                                    </div>                                    
                                </fieldset>  
                                <div style="height:15px;clear:both;"></div>
                                <asp:LinkButton ID="btnsave" class="btn btn-primary"  runat="server" Width="60px" OnClick="btnsave_Click"><i class="icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                                <asp:LinkButton ID="btnclose" Visible="true" runat="server" class="btn  btn-danger"><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                            </div>
                        </ContentTemplate>
                        <Triggers>

                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </div>
    <br><br><br><br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br><br><br><br>
</asp:Content>

